package com.TeacherInfoServer.pojo.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TeacherListVo {
    @TableId(value = "id",type = IdType.AUTO)
    @Schema(accessMode = READ_ONLY)
    @ExcelIgnore
    private Integer id;

    @TableField("teacher_id")
    @ExcelProperty(value = "工号",index = 0)
    @ColumnWidth(20)
    private String teacherId;

    @TableField("teacher_name")
    @ExcelProperty(value = "姓名",index = 1)
    @ColumnWidth(20)
    private String teacherName;

    @TableField("gender")
    @ExcelProperty(value = "性别",index = 2)
    @ColumnWidth(10)
    private String gender;

    @TableField("birth_date")
    @ExcelProperty(value = "出生日期",index = 3)
    @ColumnWidth(20)
    private String birthDate;

    @TableField("id_card_number")
    @ExcelProperty(value = "身份证号码",index = 4)
    @ColumnWidth(20)
    private String idCardNumber;

    @TableField("job_title")
    @ExcelProperty(value = "现职称",index = 5)
    @ColumnWidth(20)
    private String jobTitle;

    @TableField("department")
    @ExcelProperty(value = "现在教研室",index = 6)
    @ColumnWidth(20)
    private String department;

    @TableField("degree")
    @ExcelProperty(value = "学位",index = 7)
    @ColumnWidth(10)
    private String degree;

    @TableField("educated")
    @ExcelProperty(value = "学历",index = 8)
    @ColumnWidth(10)
    private String educated;

    @TableField("ethnic")
    @ExcelProperty(value = "民族",index = 9)
    @ColumnWidth(10)
    private String ethnic;

    @TableField("college")
    @ExcelProperty(value = "学院",index = 10)
    @ColumnWidth(10)
    private String college;

    @TableField("age")
    @ExcelProperty(value = "年龄",index = 11)
    @ColumnWidth(10)
    private Integer age;


}
